package org.example.test;


import java.text.DecimalFormat;
import java.util.Random;

public class Demo2 {
    public static void main(String[] args) {
        String username = "1234566654321";
        System.out.println(username.substring(0,5));
        System.out.println(username.substring(username.length()-4));

        String dbname = "";


        int fn2 = 0;
        Random random = new Random();
        for (int i = 1; i < 20172; i++) {

            int age = random.nextInt(100);
            if (i%2==0){
                System.out.println("('"+i+"', "+age+", '张"+i+"', '男', '北京市朝阳区'),");
            }else{
                System.out.println("('"+i+"', "+age+", '王"+i+"', '女', '深圳宝安区'),");
            }

        }

    }
}
